
class Exchange:
    """
    交易所代码
    """
    SH = "SH"  # 上交所
    SZ = "SZ"  # 深交所


class MDType:
    """行情类型"""
    TICK = "tick"
    BAR = "bar"


class OrderStatus:
    """订单状态"""
    PENDING = '0'  # 策略发出
    SENDED = '1'   # 正在传送给回测引擎
    ACCEPTED = '2' # 回测已接收


class TradeStatus:
    """交易状态"""
    NOTTRADE = '0'    # 未成交
    PARTTRADE = '1'   # 部分成交
    ALLTRADE = '2'    # 全部成交
    PARTCANCEL = '3'  # 部分取消
    ALLCANCEL = '4'   # 全部取消